using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace Microsoft.Phone.Controls.Maps.ConfigService
{
	[GeneratedCode("System.Runtime.Serialization", "4.0.0.0"), DebuggerStepThrough, DataContract(Name = "Location", Namespace = "http://dev.virtualearth.net/webservices/v1/common"), KnownType(typeof(UserLocation)), KnownType(typeof(GeocodeLocation))]
	internal class Location : INotifyPropertyChanged
	{
		private double AltitudeField;
		private double LatitudeField;
		private double LongitudeField;
		public event PropertyChangedEventHandler PropertyChanged
		{
			[MethodImpl(32)]
			add
			{
				this.PropertyChanged = (PropertyChangedEventHandler)Delegate.Combine(this.PropertyChanged, value);
			}
			[MethodImpl(32)]
			remove
			{
				this.PropertyChanged = (PropertyChangedEventHandler)Delegate.Remove(this.PropertyChanged, value);
			}
		}
		[DataMember]
		internal double Altitude
		{
			get
			{
				return this.AltitudeField;
			}
			set
			{
				if (!this.AltitudeField.Equals(value))
				{
					this.AltitudeField = value;
					this.RaisePropertyChanged("Altitude");
				}
			}
		}
		[DataMember]
		internal double Latitude
		{
			get
			{
				return this.LatitudeField;
			}
			set
			{
				if (!this.LatitudeField.Equals(value))
				{
					this.LatitudeField = value;
					this.RaisePropertyChanged("Latitude");
				}
			}
		}
		[DataMember]
		internal double Longitude
		{
			get
			{
				return this.LongitudeField;
			}
			set
			{
				if (!this.LongitudeField.Equals(value))
				{
					this.LongitudeField = value;
					this.RaisePropertyChanged("Longitude");
				}
			}
		}
		protected void RaisePropertyChanged(string propertyName)
		{
			PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
			if (propertyChanged != null)
			{
				propertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
}
